package org.dtrd.modules.food.entity.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DtrdExtEmsYwCookbooksExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DtrdExtEmsYwCookbooksExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(Integer value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(Integer value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(Integer value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(Integer value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<Integer> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<Integer> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(Integer value1, Integer value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCookNameIsNull() {
            addCriterion("cook_name is null");
            return (Criteria) this;
        }

        public Criteria andCookNameIsNotNull() {
            addCriterion("cook_name is not null");
            return (Criteria) this;
        }

        public Criteria andCookNameEqualTo(String value) {
            addCriterion("cook_name =", value, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameNotEqualTo(String value) {
            addCriterion("cook_name <>", value, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameGreaterThan(String value) {
            addCriterion("cook_name >", value, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameGreaterThanOrEqualTo(String value) {
            addCriterion("cook_name >=", value, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameLessThan(String value) {
            addCriterion("cook_name <", value, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameLessThanOrEqualTo(String value) {
            addCriterion("cook_name <=", value, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameLike(String value) {
            addCriterion("cook_name like", value, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameNotLike(String value) {
            addCriterion("cook_name not like", value, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameIn(List<String> values) {
            addCriterion("cook_name in", values, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameNotIn(List<String> values) {
            addCriterion("cook_name not in", values, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameBetween(String value1, String value2) {
            addCriterion("cook_name between", value1, value2, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookNameNotBetween(String value1, String value2) {
            addCriterion("cook_name not between", value1, value2, "cookName");
            return (Criteria) this;
        }

        public Criteria andCookKcalIsNull() {
            addCriterion("cook_kcal is null");
            return (Criteria) this;
        }

        public Criteria andCookKcalIsNotNull() {
            addCriterion("cook_kcal is not null");
            return (Criteria) this;
        }

        public Criteria andCookKcalEqualTo(Integer value) {
            addCriterion("cook_kcal =", value, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalNotEqualTo(Integer value) {
            addCriterion("cook_kcal <>", value, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalGreaterThan(Integer value) {
            addCriterion("cook_kcal >", value, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalGreaterThanOrEqualTo(Integer value) {
            addCriterion("cook_kcal >=", value, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalLessThan(Integer value) {
            addCriterion("cook_kcal <", value, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalLessThanOrEqualTo(Integer value) {
            addCriterion("cook_kcal <=", value, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalIn(List<Integer> values) {
            addCriterion("cook_kcal in", values, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalNotIn(List<Integer> values) {
            addCriterion("cook_kcal not in", values, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalBetween(Integer value1, Integer value2) {
            addCriterion("cook_kcal between", value1, value2, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookKcalNotBetween(Integer value1, Integer value2) {
            addCriterion("cook_kcal not between", value1, value2, "cookKcal");
            return (Criteria) this;
        }

        public Criteria andCookFatIsNull() {
            addCriterion("cook_fat is null");
            return (Criteria) this;
        }

        public Criteria andCookFatIsNotNull() {
            addCriterion("cook_fat is not null");
            return (Criteria) this;
        }

        public Criteria andCookFatEqualTo(Float value) {
            addCriterion("cook_fat =", value, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatNotEqualTo(Float value) {
            addCriterion("cook_fat <>", value, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatGreaterThan(Float value) {
            addCriterion("cook_fat >", value, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatGreaterThanOrEqualTo(Float value) {
            addCriterion("cook_fat >=", value, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatLessThan(Float value) {
            addCriterion("cook_fat <", value, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatLessThanOrEqualTo(Float value) {
            addCriterion("cook_fat <=", value, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatIn(List<Float> values) {
            addCriterion("cook_fat in", values, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatNotIn(List<Float> values) {
            addCriterion("cook_fat not in", values, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatBetween(Float value1, Float value2) {
            addCriterion("cook_fat between", value1, value2, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookFatNotBetween(Float value1, Float value2) {
            addCriterion("cook_fat not between", value1, value2, "cookFat");
            return (Criteria) this;
        }

        public Criteria andCookProteinIsNull() {
            addCriterion("cook_protein is null");
            return (Criteria) this;
        }

        public Criteria andCookProteinIsNotNull() {
            addCriterion("cook_protein is not null");
            return (Criteria) this;
        }

        public Criteria andCookProteinEqualTo(Float value) {
            addCriterion("cook_protein =", value, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinNotEqualTo(Float value) {
            addCriterion("cook_protein <>", value, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinGreaterThan(Float value) {
            addCriterion("cook_protein >", value, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinGreaterThanOrEqualTo(Float value) {
            addCriterion("cook_protein >=", value, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinLessThan(Float value) {
            addCriterion("cook_protein <", value, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinLessThanOrEqualTo(Float value) {
            addCriterion("cook_protein <=", value, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinIn(List<Float> values) {
            addCriterion("cook_protein in", values, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinNotIn(List<Float> values) {
            addCriterion("cook_protein not in", values, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinBetween(Float value1, Float value2) {
            addCriterion("cook_protein between", value1, value2, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookProteinNotBetween(Float value1, Float value2) {
            addCriterion("cook_protein not between", value1, value2, "cookProtein");
            return (Criteria) this;
        }

        public Criteria andCookDfIsNull() {
            addCriterion("cook_df is null");
            return (Criteria) this;
        }

        public Criteria andCookDfIsNotNull() {
            addCriterion("cook_df is not null");
            return (Criteria) this;
        }

        public Criteria andCookDfEqualTo(Float value) {
            addCriterion("cook_df =", value, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfNotEqualTo(Float value) {
            addCriterion("cook_df <>", value, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfGreaterThan(Float value) {
            addCriterion("cook_df >", value, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfGreaterThanOrEqualTo(Float value) {
            addCriterion("cook_df >=", value, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfLessThan(Float value) {
            addCriterion("cook_df <", value, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfLessThanOrEqualTo(Float value) {
            addCriterion("cook_df <=", value, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfIn(List<Float> values) {
            addCriterion("cook_df in", values, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfNotIn(List<Float> values) {
            addCriterion("cook_df not in", values, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfBetween(Float value1, Float value2) {
            addCriterion("cook_df between", value1, value2, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookDfNotBetween(Float value1, Float value2) {
            addCriterion("cook_df not between", value1, value2, "cookDf");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateIsNull() {
            addCriterion("cook_carbohydrate is null");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateIsNotNull() {
            addCriterion("cook_carbohydrate is not null");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateEqualTo(Float value) {
            addCriterion("cook_carbohydrate =", value, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateNotEqualTo(Float value) {
            addCriterion("cook_carbohydrate <>", value, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateGreaterThan(Float value) {
            addCriterion("cook_carbohydrate >", value, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateGreaterThanOrEqualTo(Float value) {
            addCriterion("cook_carbohydrate >=", value, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateLessThan(Float value) {
            addCriterion("cook_carbohydrate <", value, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateLessThanOrEqualTo(Float value) {
            addCriterion("cook_carbohydrate <=", value, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateIn(List<Float> values) {
            addCriterion("cook_carbohydrate in", values, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateNotIn(List<Float> values) {
            addCriterion("cook_carbohydrate not in", values, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateBetween(Float value1, Float value2) {
            addCriterion("cook_carbohydrate between", value1, value2, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCarbohydrateNotBetween(Float value1, Float value2) {
            addCriterion("cook_carbohydrate not between", value1, value2, "cookCarbohydrate");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinIsNull() {
            addCriterion("cook_cholesterin is null");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinIsNotNull() {
            addCriterion("cook_cholesterin is not null");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinEqualTo(Float value) {
            addCriterion("cook_cholesterin =", value, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinNotEqualTo(Float value) {
            addCriterion("cook_cholesterin <>", value, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinGreaterThan(Float value) {
            addCriterion("cook_cholesterin >", value, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinGreaterThanOrEqualTo(Float value) {
            addCriterion("cook_cholesterin >=", value, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinLessThan(Float value) {
            addCriterion("cook_cholesterin <", value, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinLessThanOrEqualTo(Float value) {
            addCriterion("cook_cholesterin <=", value, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinIn(List<Float> values) {
            addCriterion("cook_cholesterin in", values, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinNotIn(List<Float> values) {
            addCriterion("cook_cholesterin not in", values, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinBetween(Float value1, Float value2) {
            addCriterion("cook_cholesterin between", value1, value2, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookCholesterinNotBetween(Float value1, Float value2) {
            addCriterion("cook_cholesterin not between", value1, value2, "cookCholesterin");
            return (Criteria) this;
        }

        public Criteria andCookTipsIsNull() {
            addCriterion("cook_tips is null");
            return (Criteria) this;
        }

        public Criteria andCookTipsIsNotNull() {
            addCriterion("cook_tips is not null");
            return (Criteria) this;
        }

        public Criteria andCookTipsEqualTo(String value) {
            addCriterion("cook_tips =", value, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsNotEqualTo(String value) {
            addCriterion("cook_tips <>", value, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsGreaterThan(String value) {
            addCriterion("cook_tips >", value, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsGreaterThanOrEqualTo(String value) {
            addCriterion("cook_tips >=", value, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsLessThan(String value) {
            addCriterion("cook_tips <", value, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsLessThanOrEqualTo(String value) {
            addCriterion("cook_tips <=", value, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsLike(String value) {
            addCriterion("cook_tips like", value, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsNotLike(String value) {
            addCriterion("cook_tips not like", value, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsIn(List<String> values) {
            addCriterion("cook_tips in", values, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsNotIn(List<String> values) {
            addCriterion("cook_tips not in", values, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsBetween(String value1, String value2) {
            addCriterion("cook_tips between", value1, value2, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookTipsNotBetween(String value1, String value2) {
            addCriterion("cook_tips not between", value1, value2, "cookTips");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeIsNull() {
            addCriterion("cook_create_time is null");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeIsNotNull() {
            addCriterion("cook_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeEqualTo(Date value) {
            addCriterion("cook_create_time =", value, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeNotEqualTo(Date value) {
            addCriterion("cook_create_time <>", value, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeGreaterThan(Date value) {
            addCriterion("cook_create_time >", value, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cook_create_time >=", value, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeLessThan(Date value) {
            addCriterion("cook_create_time <", value, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("cook_create_time <=", value, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeIn(List<Date> values) {
            addCriterion("cook_create_time in", values, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeNotIn(List<Date> values) {
            addCriterion("cook_create_time not in", values, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeBetween(Date value1, Date value2) {
            addCriterion("cook_create_time between", value1, value2, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("cook_create_time not between", value1, value2, "cookCreateTime");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidIsNull() {
            addCriterion("cook_categoryId is null");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidIsNotNull() {
            addCriterion("cook_categoryId is not null");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidEqualTo(Integer value) {
            addCriterion("cook_categoryId =", value, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidNotEqualTo(Integer value) {
            addCriterion("cook_categoryId <>", value, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidGreaterThan(Integer value) {
            addCriterion("cook_categoryId >", value, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cook_categoryId >=", value, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidLessThan(Integer value) {
            addCriterion("cook_categoryId <", value, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidLessThanOrEqualTo(Integer value) {
            addCriterion("cook_categoryId <=", value, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidIn(List<Integer> values) {
            addCriterion("cook_categoryId in", values, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidNotIn(List<Integer> values) {
            addCriterion("cook_categoryId not in", values, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidBetween(Integer value1, Integer value2) {
            addCriterion("cook_categoryId between", value1, value2, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCategoryidNotBetween(Integer value1, Integer value2) {
            addCriterion("cook_categoryId not between", value1, value2, "cookCategoryid");
            return (Criteria) this;
        }

        public Criteria andCookCreaterIsNull() {
            addCriterion("cook_creater is null");
            return (Criteria) this;
        }

        public Criteria andCookCreaterIsNotNull() {
            addCriterion("cook_creater is not null");
            return (Criteria) this;
        }

        public Criteria andCookCreaterEqualTo(Integer value) {
            addCriterion("cook_creater =", value, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterNotEqualTo(Integer value) {
            addCriterion("cook_creater <>", value, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterGreaterThan(Integer value) {
            addCriterion("cook_creater >", value, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterGreaterThanOrEqualTo(Integer value) {
            addCriterion("cook_creater >=", value, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterLessThan(Integer value) {
            addCriterion("cook_creater <", value, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterLessThanOrEqualTo(Integer value) {
            addCriterion("cook_creater <=", value, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterIn(List<Integer> values) {
            addCriterion("cook_creater in", values, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterNotIn(List<Integer> values) {
            addCriterion("cook_creater not in", values, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterBetween(Integer value1, Integer value2) {
            addCriterion("cook_creater between", value1, value2, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookCreaterNotBetween(Integer value1, Integer value2) {
            addCriterion("cook_creater not between", value1, value2, "cookCreater");
            return (Criteria) this;
        }

        public Criteria andCookEditorIsNull() {
            addCriterion("cook_editor is null");
            return (Criteria) this;
        }

        public Criteria andCookEditorIsNotNull() {
            addCriterion("cook_editor is not null");
            return (Criteria) this;
        }

        public Criteria andCookEditorEqualTo(Integer value) {
            addCriterion("cook_editor =", value, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorNotEqualTo(Integer value) {
            addCriterion("cook_editor <>", value, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorGreaterThan(Integer value) {
            addCriterion("cook_editor >", value, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorGreaterThanOrEqualTo(Integer value) {
            addCriterion("cook_editor >=", value, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorLessThan(Integer value) {
            addCriterion("cook_editor <", value, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorLessThanOrEqualTo(Integer value) {
            addCriterion("cook_editor <=", value, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorIn(List<Integer> values) {
            addCriterion("cook_editor in", values, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorNotIn(List<Integer> values) {
            addCriterion("cook_editor not in", values, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorBetween(Integer value1, Integer value2) {
            addCriterion("cook_editor between", value1, value2, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditorNotBetween(Integer value1, Integer value2) {
            addCriterion("cook_editor not between", value1, value2, "cookEditor");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeIsNull() {
            addCriterion("cook_edit_time is null");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeIsNotNull() {
            addCriterion("cook_edit_time is not null");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeEqualTo(Date value) {
            addCriterion("cook_edit_time =", value, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeNotEqualTo(Date value) {
            addCriterion("cook_edit_time <>", value, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeGreaterThan(Date value) {
            addCriterion("cook_edit_time >", value, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cook_edit_time >=", value, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeLessThan(Date value) {
            addCriterion("cook_edit_time <", value, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeLessThanOrEqualTo(Date value) {
            addCriterion("cook_edit_time <=", value, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeIn(List<Date> values) {
            addCriterion("cook_edit_time in", values, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeNotIn(List<Date> values) {
            addCriterion("cook_edit_time not in", values, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeBetween(Date value1, Date value2) {
            addCriterion("cook_edit_time between", value1, value2, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookEditTimeNotBetween(Date value1, Date value2) {
            addCriterion("cook_edit_time not between", value1, value2, "cookEditTime");
            return (Criteria) this;
        }

        public Criteria andCookDeleterIsNull() {
            addCriterion("cook_deleter is null");
            return (Criteria) this;
        }

        public Criteria andCookDeleterIsNotNull() {
            addCriterion("cook_deleter is not null");
            return (Criteria) this;
        }

        public Criteria andCookDeleterEqualTo(Integer value) {
            addCriterion("cook_deleter =", value, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterNotEqualTo(Integer value) {
            addCriterion("cook_deleter <>", value, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterGreaterThan(Integer value) {
            addCriterion("cook_deleter >", value, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterGreaterThanOrEqualTo(Integer value) {
            addCriterion("cook_deleter >=", value, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterLessThan(Integer value) {
            addCriterion("cook_deleter <", value, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterLessThanOrEqualTo(Integer value) {
            addCriterion("cook_deleter <=", value, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterIn(List<Integer> values) {
            addCriterion("cook_deleter in", values, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterNotIn(List<Integer> values) {
            addCriterion("cook_deleter not in", values, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterBetween(Integer value1, Integer value2) {
            addCriterion("cook_deleter between", value1, value2, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDeleterNotBetween(Integer value1, Integer value2) {
            addCriterion("cook_deleter not between", value1, value2, "cookDeleter");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeIsNull() {
            addCriterion("cook_del_time is null");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeIsNotNull() {
            addCriterion("cook_del_time is not null");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeEqualTo(Date value) {
            addCriterion("cook_del_time =", value, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeNotEqualTo(Date value) {
            addCriterion("cook_del_time <>", value, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeGreaterThan(Date value) {
            addCriterion("cook_del_time >", value, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cook_del_time >=", value, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeLessThan(Date value) {
            addCriterion("cook_del_time <", value, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeLessThanOrEqualTo(Date value) {
            addCriterion("cook_del_time <=", value, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeIn(List<Date> values) {
            addCriterion("cook_del_time in", values, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeNotIn(List<Date> values) {
            addCriterion("cook_del_time not in", values, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeBetween(Date value1, Date value2) {
            addCriterion("cook_del_time between", value1, value2, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookDelTimeNotBetween(Date value1, Date value2) {
            addCriterion("cook_del_time not between", value1, value2, "cookDelTime");
            return (Criteria) this;
        }

        public Criteria andCookUrlIsNull() {
            addCriterion("cook_url is null");
            return (Criteria) this;
        }

        public Criteria andCookUrlIsNotNull() {
            addCriterion("cook_url is not null");
            return (Criteria) this;
        }

        public Criteria andCookUrlEqualTo(String value) {
            addCriterion("cook_url =", value, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlNotEqualTo(String value) {
            addCriterion("cook_url <>", value, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlGreaterThan(String value) {
            addCriterion("cook_url >", value, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlGreaterThanOrEqualTo(String value) {
            addCriterion("cook_url >=", value, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlLessThan(String value) {
            addCriterion("cook_url <", value, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlLessThanOrEqualTo(String value) {
            addCriterion("cook_url <=", value, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlLike(String value) {
            addCriterion("cook_url like", value, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlNotLike(String value) {
            addCriterion("cook_url not like", value, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlIn(List<String> values) {
            addCriterion("cook_url in", values, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlNotIn(List<String> values) {
            addCriterion("cook_url not in", values, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlBetween(String value1, String value2) {
            addCriterion("cook_url between", value1, value2, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookUrlNotBetween(String value1, String value2) {
            addCriterion("cook_url not between", value1, value2, "cookUrl");
            return (Criteria) this;
        }

        public Criteria andCookThumbIsNull() {
            addCriterion("cook_thumb is null");
            return (Criteria) this;
        }

        public Criteria andCookThumbIsNotNull() {
            addCriterion("cook_thumb is not null");
            return (Criteria) this;
        }

        public Criteria andCookThumbEqualTo(String value) {
            addCriterion("cook_thumb =", value, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbNotEqualTo(String value) {
            addCriterion("cook_thumb <>", value, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbGreaterThan(String value) {
            addCriterion("cook_thumb >", value, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbGreaterThanOrEqualTo(String value) {
            addCriterion("cook_thumb >=", value, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbLessThan(String value) {
            addCriterion("cook_thumb <", value, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbLessThanOrEqualTo(String value) {
            addCriterion("cook_thumb <=", value, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbLike(String value) {
            addCriterion("cook_thumb like", value, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbNotLike(String value) {
            addCriterion("cook_thumb not like", value, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbIn(List<String> values) {
            addCriterion("cook_thumb in", values, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbNotIn(List<String> values) {
            addCriterion("cook_thumb not in", values, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbBetween(String value1, String value2) {
            addCriterion("cook_thumb between", value1, value2, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookThumbNotBetween(String value1, String value2) {
            addCriterion("cook_thumb not between", value1, value2, "cookThumb");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeIsNull() {
            addCriterion("cook_common_type is null");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeIsNotNull() {
            addCriterion("cook_common_type is not null");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeEqualTo(String value) {
            addCriterion("cook_common_type =", value, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeNotEqualTo(String value) {
            addCriterion("cook_common_type <>", value, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeGreaterThan(String value) {
            addCriterion("cook_common_type >", value, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeGreaterThanOrEqualTo(String value) {
            addCriterion("cook_common_type >=", value, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeLessThan(String value) {
            addCriterion("cook_common_type <", value, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeLessThanOrEqualTo(String value) {
            addCriterion("cook_common_type <=", value, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeLike(String value) {
            addCriterion("cook_common_type like", value, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeNotLike(String value) {
            addCriterion("cook_common_type not like", value, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeIn(List<String> values) {
            addCriterion("cook_common_type in", values, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeNotIn(List<String> values) {
            addCriterion("cook_common_type not in", values, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeBetween(String value1, String value2) {
            addCriterion("cook_common_type between", value1, value2, "cookCommonType");
            return (Criteria) this;
        }

        public Criteria andCookCommonTypeNotBetween(String value1, String value2) {
            addCriterion("cook_common_type not between", value1, value2, "cookCommonType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}